angular.module('starter.routers', [])
    .config(function($stateProvider, $urlRouterProvider) {
        // For any unmatched url, redirect to /page1
        $urlRouterProvider.otherwise("/page1");
        // Now set up the states
        $stateProvider
            .state('page1', {
                url: "/page1",
                templateUrl: "templates/page1.html"
            })
            .state('page2', {
                url: "/page2",
                templateUrl: "templates/page2.html"
            });
    });